# Copyright (C) 2014-2021  CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
#
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#

from salome.shaper import model

model.begin()
partSet = model.moduleDocument()
Part_1 = model.addPart(partSet)
Part_1_doc = Part_1.document()
Parameter_H = model.addParameter(Part_1_doc, "H", "6")
Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("YOZ"))
SketchLine_1 = Sketch_1.addLine(50, 70, 50, 9.237604307034024)
SketchLine_1.setName("SketchLine_10")
SketchLine_1.result().setName("SketchLine_10")
SketchLine_2 = Sketch_1.addLine(42, -4.618802153516998, -53.92304845413265, -60)
SketchLine_2.setName("SketchLine_11")
SketchLine_2.result().setName("SketchLine_11")
SketchLine_3 = Sketch_1.addLine(50, 70, 50, 0)
SketchLine_3.setName("SketchLine_1")
SketchLine_3.result().setName("SketchLine_1")
SketchLine_3.setAuxiliary(True)
SketchLine_4 = Sketch_1.addLine(50, 0, -53.92304845413265, -60)
SketchLine_4.setName("SketchLine_2")
SketchLine_4.result().setName("SketchLine_2")
SketchLine_4.setAuxiliary(True)
SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_4.startPoint())
SketchLine_5 = Sketch_1.addLine(44, 9.237604307034037, 44, 70)
SketchLine_5.setName("SketchLine_8")
SketchLine_5.result().setName("SketchLine_8")
SketchLine_6 = Sketch_1.addLine(-53.92304845413265, -60, -56.92304845413265, -54.80384757729332)
SketchLine_6.setName("SketchLine_3")
SketchLine_6.result().setName("SketchLine_3")
SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_4.endPoint(), SketchLine_6.startPoint())
SketchLine_7 = Sketch_1.addLine(-56.92304845413265, -54.80384757729332, 39, 0.5773502691896394)
SketchLine_7.setName("SketchLine_9")
SketchLine_7.result().setName("SketchLine_9")
SketchLine_8 = Sketch_1.addLine(-56.92304845413265, -54.80384757729332, 44, 3.464101615137764)
SketchLine_8.setName("SketchLine_4")
SketchLine_8.result().setName("SketchLine_4")
SketchLine_8.setAuxiliary(True)
SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchLine_8.startPoint())
SketchLine_9 = Sketch_1.addLine(44, 3.464101615137764, 44, 70)
SketchLine_9.setName("SketchLine_5")
SketchLine_9.result().setName("SketchLine_5")
SketchLine_9.setAuxiliary(True)
SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_8.endPoint(), SketchLine_9.startPoint())
SketchLine_10 = Sketch_1.addLine(44, 70, 50, 70)
SketchLine_10.setName("SketchLine_6")
SketchLine_10.result().setName("SketchLine_6")
SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchLine_9.endPoint(), SketchLine_10.startPoint())
SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchLine_3.startPoint(), SketchLine_10.endPoint())
SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_3.result())
SketchConstraintVertical_2 = Sketch_1.setVertical(SketchLine_9.result())
SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_10.result())
SketchConstraintDistance_1 = Sketch_1.setDistance(SketchLine_3.startPoint(), SketchLine_9.result(), "H", False)
SketchLine_11 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OZ"))
SketchLine_11.setName("SketchLine_7")
SketchLine_11.result().setName("SketchLine_7")
SketchConstraintDistance_2 = Sketch_1.setDistance(SketchLine_3.startPoint(), SketchLine_11.result(), 50, False)
SketchArc_1 = Sketch_1.addArc(34, 9.237604307034037, 39, 0.5773502691896394, 44, 9.237604307034037, False)
SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchArc_1.startPoint(), SketchLine_7.endPoint())
SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchArc_1.endPoint(), SketchLine_5.startPoint())
SketchConstraintTangent_1 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchLine_5.result())
SketchConstraintTangent_2 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchLine_7.result())
SketchConstraintCoincidence_9 = Sketch_1.setCoincident(SketchLine_9.endPoint(), SketchLine_5.endPoint())
SketchConstraintCoincidence_10 = Sketch_1.setCoincident(SketchLine_8.startPoint(), SketchLine_7.startPoint())
SketchConstraintCoincidence_11 = Sketch_1.setCoincident(SketchLine_5.startPoint(), SketchLine_9.result())
SketchConstraintCoincidence_12 = Sketch_1.setCoincident(SketchLine_7.endPoint(), SketchLine_8.result())
SketchArc_2 = Sketch_1.addArc(34, 9.237604307034022, 42, -4.618802153516998, 50, 9.237604307034024, False)
SketchConstraintCoincidence_13 = Sketch_1.setCoincident(SketchArc_2.startPoint(), SketchLine_2.startPoint())
SketchConstraintCoincidence_14 = Sketch_1.setCoincident(SketchArc_2.endPoint(), SketchLine_1.endPoint())
SketchConstraintTangent_3 = Sketch_1.setTangent(SketchArc_2.results()[1], SketchLine_1.result())
SketchConstraintTangent_4 = Sketch_1.setTangent(SketchArc_2.results()[1], SketchLine_2.result())
SketchConstraintCoincidence_15 = Sketch_1.setCoincident(SketchLine_3.startPoint(), SketchLine_1.startPoint())
SketchConstraintCoincidence_16 = Sketch_1.setCoincident(SketchLine_4.endPoint(), SketchLine_2.endPoint())
SketchConstraintCoincidence_17 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_3.result())
SketchConstraintCoincidence_18 = Sketch_1.setCoincident(SketchLine_2.startPoint(), SketchLine_4.result())
SketchConstraintDistance_3 = Sketch_1.setDistance(SketchLine_1.startPoint(), SketchLine_4.startPoint(), 70, False)
SketchConstraintPerpendicular_1 = Sketch_1.setPerpendicular(SketchLine_2.result(), SketchLine_6.result())
SketchConstraintDistance_4 = Sketch_1.setDistance(SketchLine_6.endPoint(), SketchLine_2.result(), 6, False)
SketchConstraintParallel_1 = Sketch_1.setParallel(SketchLine_2.result(), SketchLine_7.result())
SketchConstraintAngle_1 = Sketch_1.setAngle(SketchLine_1.result(), SketchLine_2.result(), 119.9999999999999)
SketchConstraintDistance_5 = Sketch_1.setDistance(SketchLine_4.startPoint(), SketchLine_6.startPoint(), 120, False)
SketchLine_12 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OY"))
SketchConstraintCoincidence_19 = Sketch_1.setCoincident(SketchLine_4.startPoint(), SketchLine_12.result())
SketchConstraintRadius_1 = Sketch_1.setRadius(SketchArc_2.results()[1], 16)
SketchConstraintRadius_2 = Sketch_1.setRadius(SketchArc_1.results()[1], 10)
model.do()
Sketch_2 = model.addSketch(Part_1_doc, model.defaultPlane("XOY"))
SketchCircle_1 = Sketch_2.addCircle(0, 0, 17.5)
SketchPoint_1 = Sketch_2.addPoint(model.selection("VERTEX", "PartSet/Origin"))
SketchConstraintCoincidence_20 = Sketch_2.setCoincident(SketchCircle_1.center(), SketchPoint_1.result())
SketchConstraintRadius_3 = Sketch_2.setRadius(SketchCircle_1.results()[1], 17.5)
SketchCircle_2 = Sketch_2.addCircle(0, 0, 14.5)
SketchConstraintCoincidence_21 = Sketch_2.setCoincident(SketchCircle_1.center(), SketchCircle_2.center())
SketchConstraintCoincidence_22 = Sketch_2.setCoincident(SketchPoint_1.coordinates(), SketchCircle_2.center())
SketchConstraintRadius_4 = Sketch_2.setRadius(SketchCircle_2.results()[1], 14.5)
model.do()
Sketch_3 = model.addSketch(Part_1_doc, model.defaultPlane("YOZ"))
SketchLine_13 = Sketch_3.addLine(-22, 70, -22, -35.79571668975675)
SketchLine_14 = Sketch_3.addLine(-22, -35.79571668975675, 55, 8.660254037844405)
SketchConstraintCoincidence_23 = Sketch_3.setCoincident(SketchLine_13.endPoint(), SketchLine_14.startPoint())
SketchLine_15 = Sketch_3.addLine(55, 8.660254037844405, 55, 70)
SketchConstraintCoincidence_24 = Sketch_3.setCoincident(SketchLine_14.endPoint(), SketchLine_15.startPoint())
SketchLine_16 = Sketch_3.addLine(55, 70, -22, 70)
SketchConstraintCoincidence_25 = Sketch_3.setCoincident(SketchLine_15.endPoint(), SketchLine_16.startPoint())
SketchConstraintCoincidence_26 = Sketch_3.setCoincident(SketchLine_13.startPoint(), SketchLine_16.endPoint())
SketchConstraintHorizontal_2 = Sketch_3.setHorizontal(SketchLine_16.result())
SketchConstraintVertical_3 = Sketch_3.setVertical(SketchLine_15.result())
SketchConstraintVertical_4 = Sketch_3.setVertical(SketchLine_13.result())
SketchLine_17 = Sketch_3.addLine(model.selection("EDGE", "Sketch_1/SketchLine_4"))
SketchConstraintParallel_2 = Sketch_3.setParallel(SketchLine_14.result(), SketchLine_17.result())
SketchConstraintDistance_6 = Sketch_3.setDistance(SketchLine_14.endPoint(), SketchLine_17.result(), 1, False)
SketchLine_18 = Sketch_3.addLine(model.selection("EDGE", "PartSet/OZ"))
SketchConstraintDistance_7 = Sketch_3.setDistance(SketchLine_16.startPoint(), SketchLine_18.result(), 55, False)
SketchConstraintDistance_8 = Sketch_3.setDistance(SketchLine_13.startPoint(), SketchLine_18.result(), 22, False)
SketchLine_19 = Sketch_3.addLine(model.selection("EDGE", "PartSet/OY"))
SketchConstraintDistance_9 = Sketch_3.setDistance(SketchLine_15.endPoint(), SketchLine_19.result(), 70, False)
model.do()
Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_2/Face-SketchCircle_1_2r-SketchCircle_2_2r_wire")], model.selection(), 75, 45)
Extrusion_2 = model.addExtrusion(Part_1_doc, [model.selection("COMPOUND", "Sketch_3")], model.selection(), 22, 22)
Common_1 = model.addCommon(Part_1_doc, [model.selection("SOLID", "Extrusion_1_1")], [model.selection("SOLID", "Extrusion_2_1")])
Sketch_4 = model.addSketch(Part_1_doc, model.standardPlane("XOY"))
SketchLine_20 = Sketch_4.addLine(-4, 38, -4, 21.26617031813674)
SketchLine_20.setName("SketchLine_36")
SketchLine_20.result().setName("SketchLine_36")
SketchArc_3 = Sketch_4.addArc(0, 0, -8.5, 15.2970585407786, -7.446808510638298, 15.83650981137842, True)
SketchArc_3.setName("SketchArc_6")
SketchArc_3.result().setName("SketchArc_6")
SketchArc_3.results()[1].setName("SketchArc_6_2")
SketchArc_4 = Sketch_4.addArc(0, 0, 7.446808510638299, 15.83650981137842, 8.5, 15.29705854077835, True)
SketchArc_4.setName("SketchArc_8")
SketchArc_4.result().setName("SketchArc_8")
SketchArc_4.results()[1].setName("SketchArc_8_2")
SketchLine_21 = Sketch_4.addLine(4, 21.26617031813674, 4, 38)
SketchLine_21.setName("SketchLine_38")
SketchLine_21.result().setName("SketchLine_38")
SketchLine_22 = Sketch_4.addLine(-8.5, 15.2970585407786, -8.5, 12)
SketchLine_22.setName("SketchLine_22")
SketchLine_22.result().setName("SketchLine_22")
SketchLine_23 = Sketch_4.addLine(-10.1, 44, -10, 44)
SketchLine_23.setName("SketchLine_37")
SketchLine_23.result().setName("SketchLine_37")
SketchLine_24 = Sketch_4.addLine(10, 44, 10.1, 44)
SketchLine_24.setName("SketchLine_39")
SketchLine_24.result().setName("SketchLine_39")
SketchLine_25 = Sketch_4.addLine(8.5, 12, 8.5, 15.29705854077835)
SketchLine_25.setName("SketchLine_24")
SketchLine_25.result().setName("SketchLine_24")
SketchLine_26 = Sketch_4.addLine(4, 44, 10.1, 44)
SketchLine_26.setName("SketchLine_26")
SketchLine_26.result().setName("SketchLine_26")
SketchLine_26.setAuxiliary(True)
SketchLine_27 = Sketch_4.addLine(4, 17.03672503740084, 4, 44)
SketchLine_27.setName("SketchLine_27")
SketchLine_27.result().setName("SketchLine_27")
SketchLine_27.setAuxiliary(True)
SketchConstraintCoincidence_27 = Sketch_4.setCoincident(SketchLine_27.endPoint(), SketchLine_26.startPoint())
SketchLine_28 = Sketch_4.addLine(10.1, 44, 10.1, 45)
SketchLine_28.setName("SketchLine_28")
SketchLine_28.result().setName("SketchLine_28")
SketchConstraintCoincidence_28 = Sketch_4.setCoincident(SketchLine_26.endPoint(), SketchLine_28.startPoint())
SketchLine_29 = Sketch_4.addLine(10.1, 45, -10.1, 45)
SketchLine_29.setName("SketchLine_29")
SketchLine_29.result().setName("SketchLine_29")
SketchConstraintCoincidence_29 = Sketch_4.setCoincident(SketchLine_28.endPoint(), SketchLine_29.startPoint())
SketchLine_30 = Sketch_4.addLine(-10.1, 45, -10.1, 44)
SketchLine_30.setName("SketchLine_30")
SketchLine_30.result().setName("SketchLine_30")
SketchConstraintCoincidence_30 = Sketch_4.setCoincident(SketchLine_29.endPoint(), SketchLine_30.startPoint())
SketchLine_31 = Sketch_4.addLine(-10.1, 44, -4, 44)
SketchLine_31.setName("SketchLine_31")
SketchLine_31.result().setName("SketchLine_31")
SketchLine_31.setAuxiliary(True)
SketchConstraintCoincidence_31 = Sketch_4.setCoincident(SketchLine_30.endPoint(), SketchLine_31.startPoint())
SketchLine_32 = Sketch_4.addLine(-4, 44, -4, 17.03672503740078)
SketchLine_32.setName("SketchLine_20")
SketchLine_32.result().setName("SketchLine_20")
SketchLine_32.setAuxiliary(True)
SketchConstraintCoincidence_32 = Sketch_4.setCoincident(SketchLine_32.startPoint(), SketchLine_31.endPoint())
SketchConstraintVertical_5 = Sketch_4.setVertical(SketchLine_32.result())
SketchConstraintVertical_6 = Sketch_4.setVertical(SketchLine_27.result())
SketchConstraintHorizontal_3 = Sketch_4.setHorizontal(SketchLine_29.result())
SketchConstraintHorizontal_4 = Sketch_4.setHorizontal(SketchLine_31.result())
SketchConstraintHorizontal_5 = Sketch_4.setHorizontal(SketchLine_26.result())
SketchConstraintVertical_7 = Sketch_4.setVertical(SketchLine_30.result())
SketchConstraintVertical_8 = Sketch_4.setVertical(SketchLine_28.result())
SketchConstraintVertical_9 = Sketch_4.setVertical(SketchLine_25.result())
SketchConstraintVertical_10 = Sketch_4.setVertical(SketchLine_22.result())
SketchLine_33 = Sketch_4.addLine(model.selection("EDGE", "PartSet/OY"))
SketchLine_33.setName("SketchLine_32")
SketchLine_33.result().setName("SketchLine_32")
SketchConstraintDistance_10 = Sketch_4.setDistance(SketchLine_22.startPoint(), SketchLine_32.result(), 4.5, False)
SketchLine_34 = Sketch_4.addLine(-8.5, 12, 8.5, 12)
SketchLine_34.setName("SketchLine_33")
SketchLine_34.result().setName("SketchLine_33")
SketchConstraintCoincidence_33 = Sketch_4.setCoincident(SketchLine_22.endPoint(), SketchLine_34.startPoint())
SketchConstraintHorizontal_6 = Sketch_4.setHorizontal(SketchLine_34.result())
SketchPoint_2 = Sketch_4.addPoint(model.selection("VERTEX", "PartSet/Origin"))
SketchArc_5 = Sketch_4.addArc(0, 0, -8.5, 15.29705854, -4, 17.0367250374, True)
SketchArc_5.setName("SketchArc_4")
SketchArc_5.result().setName("SketchArc_4")
SketchArc_5.results()[1].setName("SketchArc_4_2")
SketchArc_5.setAuxiliary(True)
SketchConstraintCoincidence_34 = Sketch_4.setCoincident(SketchLine_22.startPoint(), SketchArc_5.startPoint())
SketchArc_6 = Sketch_4.addArc(0, 0, 4, 17.0367250374, 8.5, 15.29705854, True)
SketchArc_6.setName("SketchArc_5")
SketchArc_6.result().setName("SketchArc_5")
SketchArc_6.results()[1].setName("SketchArc_5_2")
SketchArc_6.setAuxiliary(True)
SketchConstraintCoincidence_35 = Sketch_4.setCoincident(SketchLine_25.endPoint(), SketchArc_6.endPoint())
SketchPoint_3 = Sketch_4.addPoint(-4, 17.03672503740078)
SketchPoint_4 = Sketch_4.addPoint(4, 17.03672503740084)
SketchConstraintCoincidence_36 = Sketch_4.setCoincident(SketchArc_5.endPoint(), SketchPoint_3.coordinates())
SketchConstraintCoincidence_37 = Sketch_4.setCoincident(SketchArc_6.startPoint(), SketchPoint_4.coordinates())
SketchConstraintCoincidence_38 = Sketch_4.setCoincident(SketchArc_5.endPoint(), SketchLine_32.endPoint())
SketchConstraintCoincidence_39 = Sketch_4.setCoincident(SketchPoint_4.coordinates(), SketchLine_27.startPoint())
SketchArc_7 = Sketch_4.addArc(-10, 21.26617031813674, -7.446808510638298, 15.83650981137842, -4, 21.26617031813674, False)
SketchArc_7.setName("SketchArc_7")
SketchArc_7.result().setName("SketchArc_7")
SketchArc_7.results()[1].setName("SketchArc_7_2")
SketchConstraintCoincidence_40 = Sketch_4.setCoincident(SketchArc_7.startPoint(), SketchArc_3.endPoint())
SketchLine_35 = Sketch_4.addLine(-4, 44, -4, 21.26617031813674)
SketchLine_35.setName("SketchLine_34")
SketchLine_35.result().setName("SketchLine_34")
SketchLine_35.setAuxiliary(True)
SketchConstraintCoincidence_41 = Sketch_4.setCoincident(SketchArc_7.endPoint(), SketchLine_35.endPoint())
SketchConstraintTangent_5 = Sketch_4.setTangent(SketchArc_7.results()[1], SketchLine_35.result())
SketchConstraintTangent_6 = Sketch_4.setTangent(SketchArc_7.results()[1], SketchArc_3.results()[1])
SketchConstraintCoincidence_42 = Sketch_4.setCoincident(SketchLine_32.startPoint(), SketchLine_35.startPoint())
SketchConstraintCoincidence_43 = Sketch_4.setCoincident(SketchArc_5.startPoint(), SketchArc_3.startPoint())
SketchConstraintTangent_7 = Sketch_4.setTangent(SketchArc_5.results()[1], SketchArc_3.results()[1])
SketchConstraintCoincidence_44 = Sketch_4.setCoincident(SketchLine_35.endPoint(), SketchLine_32.result())
SketchConstraintCoincidence_45 = Sketch_4.setCoincident(SketchArc_3.endPoint(), SketchArc_5.results()[1])
SketchArc_8 = Sketch_4.addArc(10, 21.26617031813674, 4, 21.26617031813674, 7.446808510638299, 15.83650981137842, False)
SketchArc_8.setName("SketchArc_9")
SketchArc_8.result().setName("SketchArc_9")
SketchArc_8.results()[1].setName("SketchArc_9_2")
SketchLine_36 = Sketch_4.addLine(4, 21.26617031813674, 4, 44)
SketchLine_36.setName("SketchLine_35")
SketchLine_36.result().setName("SketchLine_35")
SketchLine_36.setAuxiliary(True)
SketchConstraintCoincidence_46 = Sketch_4.setCoincident(SketchArc_8.startPoint(), SketchLine_36.startPoint())
SketchConstraintCoincidence_47 = Sketch_4.setCoincident(SketchArc_8.endPoint(), SketchArc_4.startPoint())
SketchConstraintTangent_8 = Sketch_4.setTangent(SketchArc_8.results()[1], SketchArc_4.results()[1])
SketchConstraintTangent_9 = Sketch_4.setTangent(SketchArc_8.results()[1], SketchLine_36.result())
SketchConstraintCoincidence_48 = Sketch_4.setCoincident(SketchArc_6.endPoint(), SketchArc_4.endPoint())
SketchConstraintCoincidence_49 = Sketch_4.setCoincident(SketchLine_27.endPoint(), SketchLine_36.endPoint())
SketchConstraintTangent_10 = Sketch_4.setTangent(SketchArc_6.results()[1], SketchArc_4.results()[1])
SketchConstraintCoincidence_50 = Sketch_4.setCoincident(SketchArc_4.startPoint(), SketchArc_6.results()[1])
SketchConstraintCoincidence_51 = Sketch_4.setCoincident(SketchLine_36.startPoint(), SketchLine_27.result())
SketchConstraintCoincidence_52 = Sketch_4.setCoincident(SketchLine_25.startPoint(), SketchLine_34.endPoint())
SketchCircle_3 = Sketch_4.addCircle(model.selection("EDGE", "Sketch_2/SketchCircle_1_2"))
SketchConstraintCoincidence_53 = Sketch_4.setCoincident(SketchLine_22.startPoint(), SketchCircle_3.results()[1])
SketchConstraintCoincidence_54 = Sketch_4.setCoincident(SketchArc_4.endPoint(), SketchCircle_3.results()[1])
SketchConstraintRadius_5 = Sketch_4.setRadius(SketchArc_7.results()[1], 6)
SketchConstraintRadius_6 = Sketch_4.setRadius(SketchArc_8.results()[1], 6)
SketchConstraintDistance_11 = Sketch_4.setDistance(SketchLine_25.endPoint(), SketchLine_36.result(), 4.5, False)
SketchConstraintDistance_12 = Sketch_4.setDistance(SketchArc_8.startPoint(), SketchLine_33.result(), 4, False)
SketchConstraintDistance_13 = Sketch_4.setDistance(SketchArc_7.endPoint(), SketchLine_33.result(), 4, False)
SketchArc_9 = Sketch_4.addArc(-10, 38, -4, 38, -10, 44, False)
SketchArc_9.setName("SketchArc_10")
SketchArc_9.result().setName("SketchArc_10")
SketchArc_9.results()[1].setName("SketchArc_10_2")
SketchConstraintCoincidence_55 = Sketch_4.setCoincident(SketchArc_9.startPoint(), SketchLine_20.startPoint())
SketchConstraintCoincidence_56 = Sketch_4.setCoincident(SketchArc_9.endPoint(), SketchLine_23.endPoint())
SketchConstraintTangent_11 = Sketch_4.setTangent(SketchArc_9.results()[1], SketchLine_20.result())
SketchConstraintTangent_12 = Sketch_4.setTangent(SketchArc_9.results()[1], SketchLine_23.result())
SketchConstraintCoincidence_57 = Sketch_4.setCoincident(SketchLine_35.endPoint(), SketchLine_20.endPoint())
SketchConstraintCoincidence_58 = Sketch_4.setCoincident(SketchLine_31.startPoint(), SketchLine_23.startPoint())
SketchConstraintCoincidence_59 = Sketch_4.setCoincident(SketchLine_20.startPoint(), SketchLine_35.result())
SketchConstraintCoincidence_60 = Sketch_4.setCoincident(SketchLine_23.endPoint(), SketchLine_31.result())
SketchArc_10 = Sketch_4.addArc(10, 38, 10, 44, 4, 38, False)
SketchArc_10.setName("SketchArc_11")
SketchArc_10.result().setName("SketchArc_11")
SketchArc_10.results()[1].setName("SketchArc_11_2")
SketchConstraintCoincidence_61 = Sketch_4.setCoincident(SketchArc_10.startPoint(), SketchLine_24.startPoint())
SketchConstraintCoincidence_62 = Sketch_4.setCoincident(SketchArc_10.endPoint(), SketchLine_21.endPoint())
SketchConstraintTangent_13 = Sketch_4.setTangent(SketchArc_10.results()[1], SketchLine_21.result())
SketchConstraintTangent_14 = Sketch_4.setTangent(SketchArc_10.results()[1], SketchLine_24.result())
SketchConstraintCoincidence_63 = Sketch_4.setCoincident(SketchLine_36.startPoint(), SketchLine_21.startPoint())
SketchConstraintCoincidence_64 = Sketch_4.setCoincident(SketchLine_26.endPoint(), SketchLine_24.endPoint())
SketchConstraintCoincidence_65 = Sketch_4.setCoincident(SketchLine_21.endPoint(), SketchLine_36.result())
SketchConstraintCoincidence_66 = Sketch_4.setCoincident(SketchLine_24.startPoint(), SketchLine_26.result())
SketchConstraintRadius_7 = Sketch_4.setRadius(SketchArc_9.results()[1], 6)
SketchConstraintRadius_8 = Sketch_4.setRadius(SketchArc_10.results()[1], 6)
SketchConstraintDistance_14 = Sketch_4.setDistance(SketchLine_23.startPoint(), SketchLine_29.result(), 1, False)
SketchConstraintDistance_15 = Sketch_4.setDistance(SketchLine_24.endPoint(), SketchLine_29.result(), 1, False)
SketchLine_37 = Sketch_4.addLine(model.selection("EDGE", "PartSet/OX"))
SketchLine_37.setName("SketchLine_40")
SketchLine_37.result().setName("SketchLine_40")
SketchConstraintDistance_16 = Sketch_4.setDistance(SketchArc_10.startPoint(), SketchLine_37.result(), 44, False)
SketchConstraintDistance_17 = Sketch_4.setDistance(SketchLine_21.result(), SketchLine_24.endPoint(), 6.1, False)
SketchConstraintDistance_18 = Sketch_4.setDistance(SketchLine_30.endPoint(), SketchLine_20.result(), 6.1, False)
SketchConstraintCoincidence_67 = Sketch_4.setCoincident(SketchArc_3.center(), SketchCircle_3.center())
SketchConstraintCoincidence_68 = Sketch_4.setCoincident(SketchArc_4.center(), SketchArc_3.center())
SketchConstraintDistance_19 = Sketch_4.setDistance(SketchArc_4.center(), SketchLine_34.result(), 12, False)
model.do()
Extrusion_3 = model.addExtrusion(Part_1_doc, [model.selection("COMPOUND", "Sketch_4")], model.selection(), 50, 30)
Extrusion_4 = model.addExtrusion(Part_1_doc, [model.selection("COMPOUND", "Sketch_3")], model.selection(), 22, 22)
Common_2 = model.addCommon(Part_1_doc, [model.selection("SOLID", "Extrusion_3_1")], [model.selection("SOLID", "Extrusion_4_1")])
Extrusion_5 = model.addExtrusion(Part_1_doc, [model.selection("COMPOUND", "Sketch_3")], model.selection(), 22, 22)
Extrusion_6 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_2/Face-SketchCircle_2_2f")], model.selection(), 75, 40)
Common_3 = model.addCommon(Part_1_doc, [model.selection("SOLID", "Extrusion_6_1")], [model.selection("SOLID", "Extrusion_5_1")])
Sketch_5 = model.addSketch(Part_1_doc, model.defaultPlane("YOZ"))
SketchLine_38 = Sketch_5.addLine(44, 3.464101615137764, 16.5, 51.0954988232819)
SketchLine_38.setName("SketchLine_41")
SketchLine_38.result().setName("SketchLine_41")
SketchPoint_5 = Sketch_5.addPoint(model.selection("VERTEX", "Sketch_1/SketchLine_4_EndVertex"))
SketchConstraintCoincidence_69 = Sketch_5.setCoincident(SketchLine_38.startPoint(), SketchPoint_5.result())
SketchLine_39 = Sketch_5.addLine(model.selection("EDGE", "Sketch_1/SketchLine_4"))
SketchLine_39.setName("SketchLine_42")
SketchLine_39.result().setName("SketchLine_42")
SketchConstraintPerpendicular_2 = Sketch_5.setPerpendicular(SketchLine_38.result(), SketchLine_39.result())
SketchConstraintLength_1 = Sketch_5.setLength(SketchLine_38.result(), 55)
model.do()
Axis_4 = model.addAxis(Part_1_doc, model.selection("FACE", "Sketch_1/Face-SketchLine_6r-SketchLine_8r-SketchArc_1_2r-SketchLine_9r-SketchLine_3r-SketchLine_11r-SketchArc_2_2f-SketchLine_10r"), model.selection("VERTEX", "Sketch_1/SketchLine_4_EndVertex"))
Plane_4 = model.addPlane(Part_1_doc, model.selection("EDGE", "Axis_1"), model.selection("VERTEX", "Sketch_5/SketchLine_41_EndVertex"), False)
Sketch_6 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_1"))
SketchLine_40 = Sketch_6.addLine(4, 13, 4, 12.9)
SketchLine_40.setName("SketchLine_55")
SketchLine_40.result().setName("SketchLine_55")
SketchLine_41 = Sketch_6.addLine(4, 12.9, -4, 12.9)
SketchLine_41.setName("SketchLine_44")
SketchLine_41.result().setName("SketchLine_44")
SketchLine_42 = Sketch_6.addLine(4, 19, 4, 12.9)
SketchLine_42.setName("SketchLine_43")
SketchLine_42.result().setName("SketchLine_43")
SketchLine_42.setAuxiliary(True)
SketchConstraintCoincidence_70 = Sketch_6.setCoincident(SketchLine_42.endPoint(), SketchLine_41.startPoint())
SketchLine_43 = Sketch_6.addLine(-4, 12.9, -4, 13)
SketchLine_43.setName("SketchLine_52")
SketchLine_43.result().setName("SketchLine_52")
SketchLine_44 = Sketch_6.addLine(-10, 19, -10.1, 19)
SketchLine_44.setName("SketchLine_53")
SketchLine_44.result().setName("SketchLine_53")
SketchLine_45 = Sketch_6.addLine(-4, 12.9, -4, 19)
SketchLine_45.setName("SketchLine_45")
SketchLine_45.result().setName("SketchLine_45")
SketchLine_45.setAuxiliary(True)
SketchConstraintCoincidence_71 = Sketch_6.setCoincident(SketchLine_41.endPoint(), SketchLine_45.startPoint())
SketchLine_46 = Sketch_6.addLine(10.1, 19, 10, 19)
SketchLine_46.setName("SketchLine_54")
SketchLine_46.result().setName("SketchLine_54")
SketchLine_47 = Sketch_6.addLine(-4, 19, -10.1, 19)
SketchLine_47.setName("SketchLine_46")
SketchLine_47.result().setName("SketchLine_46")
SketchLine_47.setAuxiliary(True)
SketchConstraintCoincidence_72 = Sketch_6.setCoincident(SketchLine_45.endPoint(), SketchLine_47.startPoint())
SketchLine_48 = Sketch_6.addLine(-10.1, 19, -10.1, 19.8)
SketchLine_48.setName("SketchLine_47")
SketchLine_48.result().setName("SketchLine_47")
SketchConstraintCoincidence_73 = Sketch_6.setCoincident(SketchLine_47.endPoint(), SketchLine_48.startPoint())
SketchLine_49 = Sketch_6.addLine(-10.1, 19.8, 10.1, 19.8)
SketchLine_49.setName("SketchLine_48")
SketchLine_49.result().setName("SketchLine_48")
SketchConstraintCoincidence_74 = Sketch_6.setCoincident(SketchLine_48.endPoint(), SketchLine_49.startPoint())
SketchLine_50 = Sketch_6.addLine(10.1, 19.8, 10.1, 19)
SketchLine_50.setName("SketchLine_49")
SketchLine_50.result().setName("SketchLine_49")
SketchConstraintCoincidence_75 = Sketch_6.setCoincident(SketchLine_49.endPoint(), SketchLine_50.startPoint())
SketchLine_51 = Sketch_6.addLine(10.1, 19, 4, 19)
SketchLine_51.setName("SketchLine_50")
SketchLine_51.result().setName("SketchLine_50")
SketchLine_51.setAuxiliary(True)
SketchConstraintCoincidence_76 = Sketch_6.setCoincident(SketchLine_50.endPoint(), SketchLine_51.startPoint())
SketchConstraintCoincidence_77 = Sketch_6.setCoincident(SketchLine_42.startPoint(), SketchLine_51.endPoint())
SketchConstraintVertical_11 = Sketch_6.setVertical(SketchLine_45.result())
SketchConstraintVertical_12 = Sketch_6.setVertical(SketchLine_42.result())
SketchConstraintHorizontal_7 = Sketch_6.setHorizontal(SketchLine_41.result())
SketchConstraintHorizontal_8 = Sketch_6.setHorizontal(SketchLine_47.result())
SketchConstraintHorizontal_9 = Sketch_6.setHorizontal(SketchLine_51.result())
SketchConstraintHorizontal_10 = Sketch_6.setHorizontal(SketchLine_49.result())
SketchConstraintVertical_13 = Sketch_6.setVertical(SketchLine_50.result())
SketchConstraintDistance_20 = Sketch_6.setDistance(SketchLine_48.startPoint(), SketchLine_49.result(), 0.8, False)
SketchConstraintDistance_21 = Sketch_6.setDistance(SketchLine_51.startPoint(), SketchLine_49.result(), 0.8, False)
SketchLine_52 = Sketch_6.addLine(model.selection("EDGE", "Sketch_5/SketchLine_41"))
SketchLine_52.setName("SketchLine_51")
SketchLine_52.result().setName("SketchLine_51")
SketchConstraintDistance_22 = Sketch_6.setDistance(SketchLine_45.startPoint(), SketchLine_52.result(), 4, False)
SketchConstraintDistance_23 = Sketch_6.setDistance(SketchLine_42.endPoint(), SketchLine_52.result(), 4, False)
SketchArc_11 = Sketch_6.addArc(-10, 13, -4, 13, -10, 19, False)
SketchArc_11.setName("SketchArc_12")
SketchArc_11.result().setName("SketchArc_12")
SketchArc_11.results()[1].setName("SketchArc_12_2")
SketchConstraintCoincidence_78 = Sketch_6.setCoincident(SketchArc_11.startPoint(), SketchLine_43.endPoint())
SketchConstraintCoincidence_79 = Sketch_6.setCoincident(SketchArc_11.endPoint(), SketchLine_44.startPoint())
SketchConstraintTangent_15 = Sketch_6.setTangent(SketchArc_11.results()[1], SketchLine_43.result())
SketchConstraintTangent_16 = Sketch_6.setTangent(SketchArc_11.results()[1], SketchLine_44.result())
SketchConstraintCoincidence_80 = Sketch_6.setCoincident(SketchLine_45.startPoint(), SketchLine_43.startPoint())
SketchConstraintCoincidence_81 = Sketch_6.setCoincident(SketchLine_47.endPoint(), SketchLine_44.endPoint())
SketchConstraintCoincidence_82 = Sketch_6.setCoincident(SketchLine_43.endPoint(), SketchLine_45.result())
SketchConstraintCoincidence_83 = Sketch_6.setCoincident(SketchLine_44.startPoint(), SketchLine_47.result())
SketchArc_12 = Sketch_6.addArc(10, 13, 10, 19, 4, 13, False)
SketchArc_12.setName("SketchArc_13")
SketchArc_12.result().setName("SketchArc_13")
SketchArc_12.results()[1].setName("SketchArc_13_2")
SketchConstraintCoincidence_84 = Sketch_6.setCoincident(SketchArc_12.startPoint(), SketchLine_46.endPoint())
SketchConstraintCoincidence_85 = Sketch_6.setCoincident(SketchArc_12.endPoint(), SketchLine_40.startPoint())
SketchConstraintTangent_17 = Sketch_6.setTangent(SketchArc_12.results()[1], SketchLine_46.result())
SketchConstraintTangent_18 = Sketch_6.setTangent(SketchArc_12.results()[1], SketchLine_40.result())
SketchConstraintCoincidence_86 = Sketch_6.setCoincident(SketchLine_51.startPoint(), SketchLine_46.startPoint())
SketchConstraintCoincidence_87 = Sketch_6.setCoincident(SketchLine_42.endPoint(), SketchLine_40.endPoint())
SketchConstraintCoincidence_88 = Sketch_6.setCoincident(SketchLine_46.endPoint(), SketchLine_51.result())
SketchConstraintCoincidence_89 = Sketch_6.setCoincident(SketchLine_40.startPoint(), SketchLine_42.result())
SketchConstraintRadius_9 = Sketch_6.setRadius(SketchArc_11.results()[1], 6)
SketchConstraintRadius_10 = Sketch_6.setRadius(SketchArc_12.results()[1], 6)
SketchConstraintDistance_24 = Sketch_6.setDistance(SketchLine_40.result(), SketchLine_46.startPoint(), 6.1, False)
SketchConstraintDistance_25 = Sketch_6.setDistance(SketchLine_48.startPoint(), SketchLine_43.result(), 6.1, False)
SketchConstraintVertical_14 = Sketch_6.setVertical(SketchLine_48.result())
SketchConstraintDistance_26 = Sketch_6.setDistance(SketchLine_41.result(), SketchArc_12.startPoint(), 6.1, False)
SketchLine_53 = Sketch_6.addLine(model.selection("EDGE", "Axis_1"))
SketchLine_53.setName("SketchLine_56")
SketchLine_53.result().setName("SketchLine_56")
SketchConstraintCoincidence_90 = Sketch_6.setCoincident(SketchArc_12.startPoint(), SketchLine_53.result())
model.do()
Extrusion_7 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_6/Face-SketchArc_13_2r-SketchLine_54r-SketchLine_49r-SketchLine_48r-SketchLine_47r-SketchLine_53r-SketchArc_12_2r-SketchLine_52r-SketchLine_44r-SketchLine_55r")], model.selection(), 0, 40)
Fuse_1 = model.addFuse(Part_1_doc, [model.selection("SOLID", "Common_1_1")], [model.selection("SOLID", "Common_2_1")])
Fuse_2 = model.addFuse(Part_1_doc, [model.selection("SOLID", "Fuse_1_1")], [model.selection("SOLID", "Extrusion_7_1")])
Cut_1 = model.addCut(Part_1_doc, [model.selection("SOLID", "Fuse_2_1")], [model.selection("SOLID", "Common_3_1")])
Extrusion_8 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_1/Face-SketchLine_6r-SketchLine_8r-SketchArc_1_2r-SketchLine_9r-SketchLine_3r-SketchLine_11r-SketchArc_2_2f-SketchLine_10r_wire")], model.selection(), 55, 55)
Sketch_7 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_10"))
SketchLine_54 = Sketch_7.addLine(55, -9.237604307034024, 55, -60)
SketchLine_54.setName("SketchLine_66")
SketchLine_54.result().setName("SketchLine_66")
SketchPoint_6 = Sketch_7.addPoint(model.selection("VERTEX", "[Extrusion_8_1/Generated_Face&Sketch_1/SketchArc_2_2][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_10][Extrusion_8_1/To_Face]"))
SketchLine_55 = Sketch_7.addLine(55, -9.237604307034024, 55, -70)
SketchLine_55.setName("SketchLine_57")
SketchLine_55.result().setName("SketchLine_57")
SketchLine_55.setAuxiliary(True)
SketchConstraintCoincidence_91 = Sketch_7.setCoincident(SketchLine_55.startPoint(), SketchPoint_6.result())
SketchPoint_7 = Sketch_7.addPoint(model.selection("VERTEX", "[Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_6][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_10][Extrusion_8_1/To_Face]"))
SketchConstraintCoincidence_92 = Sketch_7.setCoincident(SketchLine_55.endPoint(), SketchPoint_7.result())
SketchLine_56 = Sketch_7.addLine(45, -70, -45, -70)
SketchLine_56.setName("SketchLine_67")
SketchLine_56.result().setName("SketchLine_67")
SketchLine_57 = Sketch_7.addLine(55, -70, -55, -70)
SketchLine_57.setName("SketchLine_58")
SketchLine_57.result().setName("SketchLine_58")
SketchLine_57.setAuxiliary(True)
SketchConstraintCoincidence_93 = Sketch_7.setCoincident(SketchLine_55.endPoint(), SketchLine_57.startPoint())
SketchPoint_8 = Sketch_7.addPoint(model.selection("VERTEX", "[Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_6][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_10][Extrusion_8_1/From_Face]"))
SketchConstraintCoincidence_94 = Sketch_7.setCoincident(SketchLine_57.endPoint(), SketchPoint_8.result())
SketchLine_58 = Sketch_7.addLine(-55, -60, -55, -9.237604307034024)
SketchLine_58.setName("SketchLine_68")
SketchLine_58.result().setName("SketchLine_68")
SketchLine_59 = Sketch_7.addLine(-55, -70, -55, -9.237604307034024)
SketchLine_59.setName("SketchLine_59")
SketchLine_59.result().setName("SketchLine_59")
SketchLine_59.setAuxiliary(True)
SketchConstraintCoincidence_95 = Sketch_7.setCoincident(SketchLine_57.endPoint(), SketchLine_59.startPoint())
SketchPoint_9 = Sketch_7.addPoint(model.selection("VERTEX", "[Extrusion_8_1/Generated_Face&Sketch_1/SketchArc_2_2][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_10][Extrusion_8_1/From_Face]"))
SketchConstraintCoincidence_96 = Sketch_7.setCoincident(SketchLine_59.endPoint(), SketchPoint_9.result())
SketchLine_60 = Sketch_7.addLine(-55, -9.237604307034024, -60, -9.237604307034024)
SketchLine_60.setName("SketchLine_60")
SketchLine_60.result().setName("SketchLine_60")
SketchConstraintCoincidence_97 = Sketch_7.setCoincident(SketchLine_59.endPoint(), SketchLine_60.startPoint())
SketchLine_61 = Sketch_7.addLine(-60, -9.237604307034024, -60, -79.23760430703402)
SketchLine_61.setName("SketchLine_61")
SketchLine_61.result().setName("SketchLine_61")
SketchConstraintCoincidence_98 = Sketch_7.setCoincident(SketchLine_60.endPoint(), SketchLine_61.startPoint())
SketchLine_62 = Sketch_7.addLine(-60, -79.23760430703402, 60, -79.23760430703402)
SketchLine_62.setName("SketchLine_62")
SketchLine_62.result().setName("SketchLine_62")
SketchConstraintCoincidence_99 = Sketch_7.setCoincident(SketchLine_61.endPoint(), SketchLine_62.startPoint())
SketchLine_63 = Sketch_7.addLine(60, -79.23760430703402, 60, -9.237604307034024)
SketchLine_63.setName("SketchLine_63")
SketchLine_63.result().setName("SketchLine_63")
SketchConstraintCoincidence_100 = Sketch_7.setCoincident(SketchLine_62.endPoint(), SketchLine_63.startPoint())
SketchLine_64 = Sketch_7.addLine(60, -9.237604307034024, 55, -9.237604307034024)
SketchLine_64.setName("SketchLine_64")
SketchLine_64.result().setName("SketchLine_64")
SketchConstraintCoincidence_101 = Sketch_7.setCoincident(SketchLine_63.endPoint(), SketchLine_64.startPoint())
SketchConstraintCoincidence_102 = Sketch_7.setCoincident(SketchLine_55.startPoint(), SketchLine_64.endPoint())
SketchConstraintCoincidence_103 = Sketch_7.setCoincident(SketchPoint_6.coordinates(), SketchLine_64.endPoint())
SketchConstraintHorizontal_11 = Sketch_7.setHorizontal(SketchLine_64.result())
SketchConstraintHorizontal_12 = Sketch_7.setHorizontal(SketchLine_60.result())
SketchConstraintHorizontal_13 = Sketch_7.setHorizontal(SketchLine_62.result())
SketchConstraintVertical_15 = Sketch_7.setVertical(SketchLine_61.result())
SketchConstraintVertical_16 = Sketch_7.setVertical(SketchLine_63.result())
SketchArc_13 = Sketch_7.addArc(45, -60, 45, -70, 55, -60, False)
SketchArc_13.setName("SketchArc_14")
SketchArc_13.result().setName("SketchArc_14")
SketchArc_13.results()[1].setName("SketchArc_14_2")
SketchLine_65 = Sketch_7.addLine(45, -70, -55, -70)
SketchLine_65.setName("SketchLine_65")
SketchLine_65.result().setName("SketchLine_65")
SketchLine_65.setAuxiliary(True)
SketchConstraintCoincidence_104 = Sketch_7.setCoincident(SketchArc_13.startPoint(), SketchLine_65.startPoint())
SketchConstraintCoincidence_105 = Sketch_7.setCoincident(SketchArc_13.endPoint(), SketchLine_54.endPoint())
SketchConstraintTangent_19 = Sketch_7.setTangent(SketchArc_13.results()[1], SketchLine_65.result())
SketchConstraintTangent_20 = Sketch_7.setTangent(SketchArc_13.results()[1], SketchLine_54.result())
SketchConstraintCoincidence_106 = Sketch_7.setCoincident(SketchLine_57.endPoint(), SketchLine_65.endPoint())
SketchConstraintCoincidence_107 = Sketch_7.setCoincident(SketchLine_55.startPoint(), SketchLine_54.startPoint())
SketchConstraintCoincidence_108 = Sketch_7.setCoincident(SketchLine_65.startPoint(), SketchLine_57.result())
SketchConstraintCoincidence_109 = Sketch_7.setCoincident(SketchLine_54.endPoint(), SketchLine_55.result())
SketchArc_14 = Sketch_7.addArc(-45, -60, -55, -60, -45, -70, False)
SketchArc_14.setName("SketchArc_15")
SketchArc_14.result().setName("SketchArc_15")
SketchArc_14.results()[1].setName("SketchArc_15_2")
SketchConstraintCoincidence_110 = Sketch_7.setCoincident(SketchArc_14.startPoint(), SketchLine_58.startPoint())
SketchConstraintCoincidence_111 = Sketch_7.setCoincident(SketchArc_14.endPoint(), SketchLine_56.endPoint())
SketchConstraintTangent_21 = Sketch_7.setTangent(SketchArc_14.results()[1], SketchLine_56.result())
SketchConstraintTangent_22 = Sketch_7.setTangent(SketchArc_14.results()[1], SketchLine_58.result())
SketchConstraintCoincidence_112 = Sketch_7.setCoincident(SketchLine_65.startPoint(), SketchLine_56.startPoint())
SketchConstraintCoincidence_113 = Sketch_7.setCoincident(SketchLine_59.endPoint(), SketchLine_58.endPoint())
SketchConstraintCoincidence_114 = Sketch_7.setCoincident(SketchLine_56.endPoint(), SketchLine_65.result())
SketchConstraintCoincidence_115 = Sketch_7.setCoincident(SketchLine_58.startPoint(), SketchLine_59.result())
SketchConstraintRadius_11 = Sketch_7.setRadius(SketchArc_13.results()[1], 10)
SketchConstraintRadius_12 = Sketch_7.setRadius(SketchArc_14.results()[1], 10)
SketchCircle_4 = Sketch_7.addCircle(44, -59, 5)
SketchCircle_5 = Sketch_7.addCircle(-44, -59, 5)
SketchConstraintRadius_13 = Sketch_7.setRadius(SketchCircle_4.results()[1], 5)
SketchConstraintRadius_14 = Sketch_7.setRadius(SketchCircle_5.results()[1], 5)
SketchConstraintDistance_27 = Sketch_7.setDistance(SketchCircle_4.center(), SketchLine_56.result(), 11, False)
SketchConstraintDistance_28 = Sketch_7.setDistance(SketchCircle_4.center(), SketchLine_54.result(), 11, False)
SketchConstraintDistance_29 = Sketch_7.setDistance(SketchCircle_5.center(), SketchLine_56.result(), 11, False)
SketchConstraintDistance_30 = Sketch_7.setDistance(SketchCircle_5.center(), SketchLine_58.result(), 11, False)
SketchCircle_6 = Sketch_7.addCircle(44, -20.23760430703402, 5)
SketchConstraintRadius_15 = Sketch_7.setRadius(SketchCircle_6.results()[1], 5)
SketchCircle_7 = Sketch_7.addCircle(-44, -20.23760430703402, 5)
SketchConstraintRadius_16 = Sketch_7.setRadius(SketchCircle_7.results()[1], 5)
SketchConstraintDistance_31 = Sketch_7.setDistance(SketchCircle_6.center(), SketchLine_54.result(), 11, False)
SketchLine_66 = Sketch_7.addLine(model.selection("EDGE", "[Extrusion_8_1/Generated_Face&Sketch_1/SketchArc_2_2][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_10]"))
SketchLine_66.setName("SketchLine_69")
SketchLine_66.result().setName("SketchLine_69")
SketchConstraintDistance_32 = Sketch_7.setDistance(SketchCircle_6.center(), SketchLine_66.result(), 11, False)
SketchConstraintDistance_33 = Sketch_7.setDistance(SketchCircle_7.center(), SketchLine_58.result(), 11, False)
SketchConstraintDistance_34 = Sketch_7.setDistance(SketchCircle_7.center(), SketchLine_66.result(), 11, False)
SketchConstraintLength_2 = Sketch_7.setLength(SketchLine_62.result(), 120)
SketchConstraintLength_3 = Sketch_7.setLength(SketchLine_61.result(), 70)
SketchConstraintDistanceHorizontal_1 = Sketch_7.setHorizontalDistance(SketchPoint_7.coordinates(), SketchLine_62.endPoint(), 5)
model.do()
ExtrusionCut_1_objects_1 = [model.selection("WIRE", "Sketch_7/Face-SketchLine_66r-SketchArc_14_2r-SketchLine_67f-SketchArc_15_2r-SketchLine_68f-SketchLine_60f-SketchLine_61f-SketchLine_62f-SketchLine_63f-SketchLine_64f_wire"), model.selection("FACE", "Sketch_7/Face-SketchCircle_4_2f"), model.selection("FACE", "Sketch_7/Face-SketchCircle_5_2f"), model.selection("FACE", "Sketch_7/Face-SketchCircle_7_2f"), model.selection("FACE", "Sketch_7/Face-SketchCircle_6_2f")]
ExtrusionCut_1 = model.addExtrusionCut(Part_1_doc, ExtrusionCut_1_objects_1, model.selection(), 0, 10, [model.selection("SOLID", "Extrusion_8_1")])
Sketch_8 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_11"))
SketchLine_67 = Sketch_8.addLine(55, -34.06366588218793, 55, 66.69872981077805)
SketchLine_67.setName("SketchLine_79")
SketchLine_67.result().setName("SketchLine_79")
SketchPoint_10 = Sketch_8.addPoint(model.selection("VERTEX", "[ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_2_2][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_11][(ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_2_2)(ExtrusionCut_1_1/Generated_Face&Sketch_7/SketchLine_66)(Extrusion_8_1/Generated_Face&Sketch_1/SketchArc_1_2)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_11)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_9)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_3)]"))
SketchLine_68 = Sketch_8.addLine(55, -34.06366588218793, 55, 76.69872981077803)
SketchLine_68.setName("SketchLine_70")
SketchLine_68.result().setName("SketchLine_70")
SketchLine_68.setAuxiliary(True)
SketchConstraintCoincidence_116 = Sketch_8.setCoincident(SketchLine_68.startPoint(), SketchPoint_10.result())
SketchPoint_11 = Sketch_8.addPoint(model.selection("VERTEX", "[Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_11][(ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_2_2)(ExtrusionCut_1_1/Generated_Face&Sketch_7/SketchLine_66)(Extrusion_8_1/Generated_Face&Sketch_1/SketchArc_1_2)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_11)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_9)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_3)][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_3]"))
SketchConstraintCoincidence_117 = Sketch_8.setCoincident(SketchLine_68.endPoint(), SketchPoint_11.result())
SketchLine_69 = Sketch_8.addLine(45, 76.69872981077805, -45, 76.69872981077805)
SketchLine_69.setName("SketchLine_80")
SketchLine_69.result().setName("SketchLine_80")
SketchLine_70 = Sketch_8.addLine(55, 76.69872981077803, -55, 76.69872981077803)
SketchLine_70.setName("SketchLine_71")
SketchLine_70.result().setName("SketchLine_71")
SketchLine_70.setAuxiliary(True)
SketchConstraintCoincidence_118 = Sketch_8.setCoincident(SketchLine_68.endPoint(), SketchLine_70.startPoint())
SketchPoint_12 = Sketch_8.addPoint(model.selection("VERTEX", "[(ExtrusionCut_1_1/Generated_Face&Sketch_7/SketchLine_68)(ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_2_2)(Extrusion_8_1/Generated_Face&Sketch_1/SketchArc_1_2)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_11)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_9)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_3)][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_11][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_3]"))
SketchConstraintCoincidence_119 = Sketch_8.setCoincident(SketchLine_70.endPoint(), SketchPoint_12.result())
SketchLine_71 = Sketch_8.addLine(-55, 66.69872976783566, -55, -34.06366588218793)
SketchLine_71.setName("SketchLine_81")
SketchLine_71.result().setName("SketchLine_81")
SketchLine_72 = Sketch_8.addLine(-55, 76.69872981077803, -55, -34.06366588218793)
SketchLine_72.setName("SketchLine_72")
SketchLine_72.result().setName("SketchLine_72")
SketchLine_72.setAuxiliary(True)
SketchConstraintCoincidence_120 = Sketch_8.setCoincident(SketchLine_70.endPoint(), SketchLine_72.startPoint())
SketchPoint_13 = Sketch_8.addPoint(model.selection("VERTEX", "[ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_2_2][(ExtrusionCut_1_1/Generated_Face&Sketch_7/SketchLine_68)(ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_2_2)(Extrusion_8_1/Generated_Face&Sketch_1/SketchArc_1_2)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_11)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_9)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_3)][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_11]"))
SketchConstraintCoincidence_121 = Sketch_8.setCoincident(SketchLine_72.endPoint(), SketchPoint_13.result())
SketchLine_73 = Sketch_8.addLine(-55, -34.06366588218793, -83.25521566485324, -34.06366588218793)
SketchLine_73.setName("SketchLine_73")
SketchLine_73.result().setName("SketchLine_73")
SketchConstraintCoincidence_122 = Sketch_8.setCoincident(SketchLine_72.endPoint(), SketchLine_73.startPoint())
SketchLine_74 = Sketch_8.addLine(-83.25521566485324, -34.06366588218793, -83.25521566485298, 92.00148393088952)
SketchLine_74.setName("SketchLine_74")
SketchLine_74.result().setName("SketchLine_74")
SketchConstraintCoincidence_123 = Sketch_8.setCoincident(SketchLine_73.endPoint(), SketchLine_74.startPoint())
SketchLine_75 = Sketch_8.addLine(-83.25521566485298, 92.00148393088952, 87.50975635635101, 92.00148393088952)
SketchLine_75.setName("SketchLine_75")
SketchLine_75.result().setName("SketchLine_75")
SketchConstraintCoincidence_124 = Sketch_8.setCoincident(SketchLine_74.endPoint(), SketchLine_75.startPoint())
SketchLine_76 = Sketch_8.addLine(87.50975635635101, 92.00148393088952, 87.50975635635101, -34.06366588218793)
SketchLine_76.setName("SketchLine_76")
SketchLine_76.result().setName("SketchLine_76")
SketchConstraintCoincidence_125 = Sketch_8.setCoincident(SketchLine_75.endPoint(), SketchLine_76.startPoint())
SketchLine_77 = Sketch_8.addLine(87.50975635635101, -34.06366588218793, 55, -34.06366588218793)
SketchLine_77.setName("SketchLine_77")
SketchLine_77.result().setName("SketchLine_77")
SketchConstraintCoincidence_126 = Sketch_8.setCoincident(SketchLine_76.endPoint(), SketchLine_77.startPoint())
SketchConstraintCoincidence_127 = Sketch_8.setCoincident(SketchLine_68.startPoint(), SketchLine_77.endPoint())
SketchConstraintCoincidence_128 = Sketch_8.setCoincident(SketchPoint_10.coordinates(), SketchLine_77.endPoint())
SketchConstraintHorizontal_14 = Sketch_8.setHorizontal(SketchLine_77.result())
SketchConstraintHorizontal_15 = Sketch_8.setHorizontal(SketchLine_73.result())
SketchConstraintHorizontal_16 = Sketch_8.setHorizontal(SketchLine_75.result())
SketchConstraintVertical_17 = Sketch_8.setVertical(SketchLine_74.result())
SketchConstraintVertical_18 = Sketch_8.setVertical(SketchLine_76.result())
SketchArc_15 = Sketch_8.addArc(45, 66.69872981077805, 55, 66.69872981077805, 45, 76.69872981077805, False)
SketchArc_15.setName("SketchArc_16")
SketchArc_15.result().setName("SketchArc_16")
SketchArc_15.results()[1].setName("SketchArc_16_2")
SketchConstraintCoincidence_129 = Sketch_8.setCoincident(SketchArc_15.startPoint(), SketchLine_67.endPoint())
SketchLine_78 = Sketch_8.addLine(45, 76.69872981077805, -55, 76.69872981077803)
SketchLine_78.setName("SketchLine_78")
SketchLine_78.result().setName("SketchLine_78")
SketchLine_78.setAuxiliary(True)
SketchConstraintCoincidence_130 = Sketch_8.setCoincident(SketchArc_15.endPoint(), SketchLine_78.startPoint())
SketchConstraintTangent_23 = Sketch_8.setTangent(SketchArc_15.results()[1], SketchLine_78.result())
SketchConstraintTangent_24 = Sketch_8.setTangent(SketchArc_15.results()[1], SketchLine_67.result())
SketchConstraintCoincidence_131 = Sketch_8.setCoincident(SketchLine_70.endPoint(), SketchLine_78.endPoint())
SketchConstraintCoincidence_132 = Sketch_8.setCoincident(SketchLine_68.startPoint(), SketchLine_67.startPoint())
SketchConstraintCoincidence_133 = Sketch_8.setCoincident(SketchLine_78.startPoint(), SketchLine_70.result())
SketchConstraintCoincidence_134 = Sketch_8.setCoincident(SketchLine_67.endPoint(), SketchLine_68.result())
SketchArc_16 = Sketch_8.addArc(-45, 66.69872976783566, -45, 76.69872981077805, -55, 66.69872976783566, False)
SketchArc_16.setName("SketchArc_17")
SketchArc_16.result().setName("SketchArc_17")
SketchArc_16.results()[1].setName("SketchArc_17_2")
SketchConstraintCoincidence_135 = Sketch_8.setCoincident(SketchArc_16.startPoint(), SketchLine_69.endPoint())
SketchConstraintCoincidence_136 = Sketch_8.setCoincident(SketchArc_16.endPoint(), SketchLine_71.startPoint())
SketchConstraintTangent_25 = Sketch_8.setTangent(SketchArc_16.results()[1], SketchLine_69.result())
SketchConstraintTangent_26 = Sketch_8.setTangent(SketchArc_16.results()[1], SketchLine_71.result())
SketchConstraintCoincidence_137 = Sketch_8.setCoincident(SketchLine_78.startPoint(), SketchLine_69.startPoint())
SketchConstraintCoincidence_138 = Sketch_8.setCoincident(SketchLine_72.endPoint(), SketchLine_71.endPoint())
SketchConstraintCoincidence_139 = Sketch_8.setCoincident(SketchLine_69.endPoint(), SketchLine_78.result())
SketchConstraintCoincidence_140 = Sketch_8.setCoincident(SketchLine_71.startPoint(), SketchLine_72.result())
SketchConstraintRadius_17 = Sketch_8.setRadius(SketchArc_15.results()[1], 10)
SketchConstraintRadius_18 = Sketch_8.setRadius(SketchArc_16.results()[1], 10)
SketchCircle_8 = Sketch_8.addCircle(-44, 51.69872981077802, 5)
SketchConstraintRadius_19 = Sketch_8.setRadius(SketchCircle_8.results()[1], 5)
SketchConstraintDistance_35 = Sketch_8.setDistance(SketchCircle_8.center(), SketchLine_69.result(), 25, False)
SketchConstraintDistance_36 = Sketch_8.setDistance(SketchCircle_8.center(), SketchLine_71.result(), 11, False)
SketchCircle_9 = Sketch_8.addCircle(-44, 16.69872981077805, 5)
SketchConstraintRadius_20 = Sketch_8.setRadius(SketchCircle_9.results()[1], 5)
SketchConstraintDistance_37 = Sketch_8.setDistance(SketchCircle_9.center(), SketchLine_71.result(), 11, False)
SketchConstraintDistance_38 = Sketch_8.setDistance(SketchCircle_9.center(), SketchLine_69.result(), 60, False)
SketchArc_17 = Sketch_8.addArc(44, 16.69872981077805, 49, 16.69872981077805, 39, 16.69872981077805, True)
SketchArc_17.setName("SketchArc_19")
SketchArc_17.result().setName("SketchArc_19")
SketchArc_17.results()[1].setName("SketchArc_19_2")
SketchConstraintRadius_21 = Sketch_8.setRadius(SketchArc_17.results()[1], 5)
SketchConstraintDistance_39 = Sketch_8.setDistance(SketchArc_17.center(), SketchLine_69.result(), 60, False)
SketchArc_18 = Sketch_8.addArc(44, 51.69872981077805, 49, 51.69872981077805, 39, 51.69872981077805, False)
SketchArc_18.setName("SketchArc_18")
SketchArc_18.result().setName("SketchArc_18")
SketchArc_18.results()[1].setName("SketchArc_18_2")
SketchLine_79 = Sketch_8.addLine(49, 16.69872981077805, 49, 51.69872981077805)
SketchLine_79.setName("SketchLine_82")
SketchLine_79.result().setName("SketchLine_82")
SketchConstraintCoincidence_141 = Sketch_8.setCoincident(SketchArc_18.startPoint(), SketchLine_79.endPoint())
SketchConstraintCoincidence_142 = Sketch_8.setCoincident(SketchLine_79.startPoint(), SketchArc_17.startPoint())
SketchLine_80 = Sketch_8.addLine(39, 16.69872981077805, 39, 51.69872981077805)
SketchLine_80.setName("SketchLine_83")
SketchLine_80.result().setName("SketchLine_83")
SketchConstraintCoincidence_143 = Sketch_8.setCoincident(SketchArc_17.endPoint(), SketchLine_80.startPoint())
SketchConstraintCoincidence_144 = Sketch_8.setCoincident(SketchArc_18.endPoint(), SketchLine_80.endPoint())
SketchConstraintDistance_40 = Sketch_8.setDistance(SketchArc_17.center(), SketchLine_67.result(), 11, False)
SketchConstraintDistance_41 = Sketch_8.setDistance(SketchLine_69.result(), SketchArc_18.center(), 25, False)
SketchConstraintDistance_42 = Sketch_8.setDistance(SketchArc_18.center(), SketchLine_67.result(), 11, False)
SketchConstraintRadius_22 = Sketch_8.setRadius(SketchArc_18.results()[1], 5)
SketchConstraintLength_4 = Sketch_8.setLength(SketchLine_80.result(), 35.000000440932)
SketchConstraintLength_5 = Sketch_8.setLength(SketchLine_79.result(), 35)
SketchConstraintLength_6 = Sketch_8.setLength(SketchLine_75.result(), 170.764972021204)
SketchConstraintLength_7 = Sketch_8.setLength(SketchLine_77.result(), 32.509756356351)
SketchConstraintLength_8 = Sketch_8.setLength(SketchLine_76.result(), 126.065149813077)
SketchConstraintDistance_43 = Sketch_8.setDistance(SketchArc_18.endPoint(), SketchLine_69.result(), 24.999999559068, False)
SketchConstraintDistance_44 = Sketch_8.setDistance(SketchArc_18.startPoint(), SketchLine_69.result(), 25, False)
model.do()
ExtrusionCut_2_objects_1 = [model.selection("FACE", "Sketch_8/Face-SketchLine_77r-SketchLine_76r-SketchLine_75r-SketchLine_74r-SketchLine_73r-SketchLine_81r-SketchArc_17_2r-SketchLine_80r-SketchArc_16_2r-SketchLine_79r"), model.selection("WIRE", "Sketch_8/Face-SketchCircle_8_2f_wire"), model.selection("WIRE", "Sketch_8/Face-SketchCircle_9_2f_wire"), model.selection("WIRE", "Sketch_8/Face-SketchArc_19_2f-SketchLine_82f-SketchArc_18_2f-SketchLine_83r_wire")]
ExtrusionCut_2 = model.addExtrusionCut(Part_1_doc, ExtrusionCut_2_objects_1, model.selection(), 0, 10, [model.selection("SOLID", "ExtrusionCut_1_1")])
Fuse_3 = model.addFuse(Part_1_doc, [model.selection("SOLID", "Cut_1_1")], [model.selection("SOLID", "ExtrusionCut_2_1")])
model.do()

# Test reexecution after parameter change
Parameter_H.setValue(8)
model.do()
model.testResultsVolumes(Fuse_3, [169754.898488585400627925992012024])
Parameter_H.setValue(6)
model.end()

from GeomAPI import GeomAPI_Shape

model.testNbResults(Fuse_3, 1)
model.testNbSubShapes(Fuse_3, GeomAPI_Shape.SOLID, [1])
